package com.youi.dao;

import com.youi.entity.UserSearchHistory;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @description:
 * @Author: winty
 * @Date: 2020/5/14 9:28
 */
public interface UserSearchHistoryDao extends BaseDao<UserSearchHistory> {

    /**
     * 获取热搜关键字
     *
     * @param param
     * @return
     */
    List<UserSearchHistory> listHotKeyword(Map<String, Object> param);

    /**
     * 获取用户搜索关键字
     *
     * @param param
     * @return
     */
    List<UserSearchHistory> listUserKeyword(Map<String, Object> param);

    /**
     * 删除用户所有关键字
     *
     * @param userId
     */
    void deleteKeywordByUserId(@Param("userId") Long userId);
}
